import { createApp } from "vue";
import App from "./UI/App.vue";
import router from "./UI/router";
import { createPinia } from "pinia";
// 样式文件引入
import "cax-ui/css/index.css";
import "./UI/reset.css";
const pinia = createPinia();
const a = createApp(App);
a.use(pinia);
a.use(router).mount("#app");
if (import.meta.env.NODE_ENV === "development") {
  // @ts-ignore
  if (window.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
    // @ts-ignore
    window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = a;
  }
  // @ts-ignore
  a.config.devtools = true;
}
